Vue.component('custom-input', {
  props: ['value'],
  template: `
    <input :value="value" @input="handleInput" />
  `,
  methods: {
    handleInput(e) {
      this.$emit('input', e.target.value)
    }
  },
})